package com.situ.pm.pojo.singleton;

public class DoubleCheckSingleton {

    private DoubleCheckSingleton(){}

    private static volatile DoubleCheckSingleton doubleCheckSingleton;

    public static DoubleCheckSingleton getInstance(){

        if(doubleCheckSingleton == null){
            synchronized (DoubleCheckSingleton.class){
                if(doubleCheckSingleton == null){
                    doubleCheckSingleton = new DoubleCheckSingleton();
                }
            }
        }
        return doubleCheckSingleton;

    }

}
